<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>theRanke.ME</title>
<link href='http://fonts.googleapis.com/css?family=Andika' rel='stylesheet' type='text/css'>
<style type="text/css">
<?php require_once('css/reset.css'); ?>
<?php require_once('css/master.css'); ?>
<?php require_once('css/' . $this->router->class . '.css'); ?>
</style>
<link rel="shortcut icon" href="<?=base_url()?>favicon.ico">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script type="text/javascript" src="<?=base_url(); ?>javascript/master.js"></script>
<script type="text/javascript" src="<?=base_url(); ?>javascript/<?=$this->router->class; ?>.js"></script>
</head>
<body>
<div id="container">

<div id="login">
	<?php
	echo form_open('home/login', array('id' => 'loginForm'));
	echo '<p>' . form_label($this->session->flashdata('error'), 'error', array('id' => 'loginError')) . '</p>';
	echo '<p>' . form_label('Username:', 'username');
	echo form_input(array('name' => 'username', 'value' => set_value('username'))) . '</p>';
	echo '<p>' . form_label('Password:', 'password');
	echo form_password('password') . '</p>';
	echo '<p>' . form_submit('', 'Login') . '</p>';	

	if ($this->router->method == 'index') {
		echo '<a href="/register">Create An Account</a>';
	} else {
		echo '<a href="/">Return Home</a>';
	}
	echo form_close();
	?>
</div> <!-- #login -->